cmake_minimum_required(VERSION 3.0)
project(pyltp)

set(-DCMAKE_CXX_STANDARD=14)
add_subdirectory(pybind11)
add_subdirectory(ltp)

pybind11_add_module(pyltp src/pyltp.cpp)
target_link_libraries(
        pyltp PRIVATE
        pybind11::module
        ner_static_lib
        parser_static_lib
        postagger_static_lib
        segmentor_static_lib
        splitsnt_static_lib
        srl_static_lib
)
target_include_directories(
        pyltp PRIVATE
        ltp/include
)
target_compile_definitions(pyltp
        PRIVATE VERSION_INFO=${EXAMPLE_VERSION_INFO})
